package com.nmsl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.mapper.GyfDoctorScheduleMapper;
import com.nmsl.domain.GyfDoctorSchedule;
import com.nmsl.service.IGyfDoctorScheduleService;

/**
 * 医生排班Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-20
 */
@Service
public class GyfDoctorScheduleServiceImpl implements IGyfDoctorScheduleService 
{
    @Autowired
    private GyfDoctorScheduleMapper gyfDoctorScheduleMapper;

    /**
     * 查询医生排班
     * 
     * @param scheduleId 医生排班主键
     * @return 医生排班
     */
    @Override
    public GyfDoctorSchedule selectGyfDoctorScheduleByScheduleId(Long scheduleId)
    {
        return gyfDoctorScheduleMapper.selectGyfDoctorScheduleByScheduleId(scheduleId);
    }

    /**
     * 查询医生排班列表
     * 
     * @param gyfDoctorSchedule 医生排班
     * @return 医生排班
     */
    @Override
    public List<GyfDoctorSchedule> selectGyfDoctorScheduleList(GyfDoctorSchedule gyfDoctorSchedule)
    {
        return gyfDoctorScheduleMapper.selectGyfDoctorScheduleList(gyfDoctorSchedule);
    }

    /**
     * 新增医生排班
     * 
     * @param gyfDoctorSchedule 医生排班
     * @return 结果
     */
    @Override
    public int insertGyfDoctorSchedule(GyfDoctorSchedule gyfDoctorSchedule)
    {
        return gyfDoctorScheduleMapper.insertGyfDoctorSchedule(gyfDoctorSchedule);
    }

    /**
     * 修改医生排班
     * 
     * @param gyfDoctorSchedule 医生排班
     * @return 结果
     */
    @Override
    public int updateGyfDoctorSchedule(GyfDoctorSchedule gyfDoctorSchedule)
    {
        return gyfDoctorScheduleMapper.updateGyfDoctorSchedule(gyfDoctorSchedule);
    }

    /**
     * 批量删除医生排班
     * 
     * @param scheduleIds 需要删除的医生排班主键
     * @return 结果
     */
    @Override
    public int deleteGyfDoctorScheduleByScheduleIds(Long[] scheduleIds)
    {
        return gyfDoctorScheduleMapper.deleteGyfDoctorScheduleByScheduleIds(scheduleIds);
    }

    /**
     * 删除医生排班信息
     * 
     * @param scheduleId 医生排班主键
     * @return 结果
     */
    @Override
    public int deleteGyfDoctorScheduleByScheduleId(Long scheduleId)
    {
        return gyfDoctorScheduleMapper.deleteGyfDoctorScheduleByScheduleId(scheduleId);
    }
}
